cmake_minimum_required(VERSION 3.10)

project(UserServiceClient LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


find_package(protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED)

file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)

add_executable(UserServiceClient client.cc ${SOURCES})

target_include_directories(UserServiceClient PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/)
target_link_libraries(UserServiceClient PRIVATE gRPC::grpc++ gRPC::grpc++_reflection protobuf::libprotobuf)
